#include <QtGui>
#include "entry.h"

class QtDiary : public QMainWindow
{
	Q_OBJECT
public:
	QtDiary(QWidget* parent=0);
	~QtDiary();

private:
	void createGui();
/*	void readFile();
	void saveFile();

private slots:
	void calendarClicked(const QDate& date);
	void saveClicked();
	void textChanged();
	void treeDoubleClicked(QTreeWidgetItem *i, int b);*/

private:
	QDockWidget* mCalendar;
	QDockWidget* mEntries;
	QTreeWidget* mTree;

	QPushButton* mSaveButton;
	QWidget* mEdit;
	QLabel* mLabelDate;
	QLineEdit* mEditDate;	
	QLabel* mLabelSubject;
	QLineEdit* mEditSubject;
	QTextEdit* mText;
	QCalendarWidget* mCalendarWidget;

	bool mDirty;
	QDate mDate;

	QList<Entry> mEntryList;
};
